<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" xmlns:th="http://www.thymeleaf.org">
    <title>更新用户</title>
</head>
<body>
<form th:action="@{/user/updateUser}">
    <input name="id" th:value="${user.getId()}" type="hidden">
    <label>name</label>
    <input type="text" th:value="${user.getName()}" name="name" placeholder="世浩">
    <label>password</label>
    <input type="text" th:value="${user.getPassword()}" name="password" placeholder="123456">
    <label>gender</label><br>
    <input  th:checked="${user.getGender()=='男'}" type="radio" name="gender" value="男">
    <label>男</label>
    <input  th:checked="${user.getGender()=='女'}"  type="radio" name="gender" value="女">
    <label>女</label>
    <label>age</label>
    <input type="text" th:value="${user.getAge()}" name="age" placeholder="18">
    <label>email</label>
    <input type="text" th:value="${user.getEmail()}" name="email" placeholder="1226076476@qq.com">
    <label>address</label>
    <input type="text" th:value="${user.getAddress()}" name="address" placeholder="河南">
    <label>phone</label>
    <input type="text" th:value="${user.getPhone()}" name="phone" placeholder="15037943217">
    <button type="submit">更新</button>
</form>
</body>
</html>